/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package exception;

import modele.Insurance;

/**
 *
 * @author Alex
 */
public class InsuranceNotExists extends Exception {
    protected Insurance insurance;
    
    public InsuranceNotExists(Insurance insurance) {
        this.insurance = insurance;
    }

    public String toString() {
        return "The customer did not subscribe an insurance for the car "
                + "registered as '" + insurance.getCarRegistration() + "'.";
    }
    
    
    
}
